package Models

import (
	"hyper/supports/models"
)

// 侧边栏权限表
type Power struct {
	models.BaseModel

	MenuId uint64 `gorm:"type:bigint;index;not null;comment:栏目id" json:"menu_id,omitempty"`
	// 通过 menu_id 关联菜单表
	Menu  Menu   `gorm:"foreignKey:MenuId" json:"menu"`
	WebId uint64 `gorm:"type:bigint;index;not null;comment:前端id" json:"web_id,omitempty"`

	Name string `gorm:"column:name;type:varchar(255);not null;comment:菜单名称" json:"name,omitempty"`
	Type uint   `gorm:"column:type;not null;comment:类型 （1查 2增 3修 4删）" json:"type,omitempty"`

	models.CommonTimestampsField
	models.DeletedAtTimestampsField
}
